@extends('layouts.app')

@section('body')
    这是首页
    <br/>

    @auth
        <img width="60" src="{{user()->avatar}}">
        <br/>
        用户名: {{user()->name}}
        <br/>
        手机号: {{user()->mobile}}
        <br/>
        邮箱: {{user()->email}}
        <br/>
        <a href="{{route('center')}}">个人中心</a>
        <a href="{{route('auth.logout')}}" target="_self">退出</a>
    @else
        <a href="{{route('auth.login')}}" target="_self">登录</a>
        <a href="{{route('auth.register')}}" target="_self">注册</a>
    @endauth
@endsection